﻿Public Class fConfigEmpresas 

    Private Sub fConfigEmpresas_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        'TODO: This line of code loads data into the 'DsAdminitracao.tblEmpresa' table. You can move, or remove it, as needed.
        Me.TblEmpresaTableAdapter.Fill(Me.DsAdminitracao.tblEmpresa)

    End Sub

    Private Sub GridView1_CellValueChanged(sender As Object, e As DevExpress.XtraGrid.Views.Base.CellValueChangedEventArgs) Handles GridView1.CellValueChanged
        TblEmpresaTableAdapter.UpdateQuery(e.Value.ToString, GridView1.GetFocusedRowCellValue(colEmpresa).ToString())
        Me.TblEmpresaTableAdapter.Fill(Me.DsAdminitracao.tblEmpresa)
    End Sub
End Class